package com.small.common.base;

/**
 * 正则常量集合
 * author yefeng
 * time 2017/5/18 17:25
 */
public interface ConstantPattern {

    /**
     * 排序正则
     */
    String VAL_ASC_DESC = "^asc|desc$";

    /**
     * 登录账号
     */
    String VAL_ACCOUNT = "^[A-Za-z]{1}([A-Za-z0-9]|[_]){4,29}$";

    /**
     * 手机号
     */
    String VAL_MOBILE = "^\\d{11}$";

    /**
     * 验证码
     */
    String VAL_CODE = "^\\d{6}$";

    /**
     * 密码
     */
    String VAL_PWD = "^\\w{6,30}$";

    String VAL_NUMBER = "^\\d+$";
}
